<#assign c = JspTaglibs["http://java.sun.com/jsp/jstl/core"] >
<#assign fmt = JspTaglibs["http://java.sun.com/jsp/jstl/fmt"] >
<#assign sp = JspTaglibs["http://www.springframework.org/tags"] >
<#assign sec = JspTaglibs["http://www.springframework.org/security/tags"] />
<!DOCTYPE html>
<html>
<head>
<title><@sp.message code="data.manager"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<#include "ngjs.ftl">
    <script src="${request.contextPath}/ng-apps/iisp-data-mgr/dist/systemjs.config.js"></script>
    <script>
    	var dataDateParam="${RequestParameters['id']}";
    	var isApprover=false;
    	var isInputer=false;
		var loginUser = "${Session['loginUser'].username}";
    	<@sec.authorize url='/iisp-data-mgr/data-input-date/approve.htm.POST'> 
    	isApprover=true;

 		</@sec.authorize> 
 		
 		<@sec.authorize url='/iisp-data-mgr/data-input-date/input.htm.POST'> 
    	isInputer=true;

 		</@sec.authorize>

 	
 		
 		
    	
      System.import('data-input-date').catch(function(err){ console.error(err); });
      langMap = Object.assign(langMap, {
      	"status_SAVED": "<@sp.message code='data.input.status.DRAFT'/>"	
      	, "status_FOR_APPROVE": "<@sp.message code='data.input.status.SUBMITTED'/>"
      	, "status_APPROVED": "<@sp.message code='data.input.status.APPROVED'/>"
      	, "status_REJECTED": "<@sp.message code='data.input.status.REJECTED'/>"
      	, "status_DELETED": "<@sp.message code='data.input.status.DELETED'/>"
        , "status_DRAFT": "<@sp.message code='data.input.status.DRAFT'/>"
        , "status_undefined": ""
        ,"activeState_forEnable": "<@sp.message code='data.input.activeState.FORENABLE'/>"
        ,"activeState_enabled": "<@sp.message code='data.input.activeState.ENABLED'/>"
        ,"activeState_forDisable": "<@sp.message code='data.input.activeState.FORDISABLE'/>"
        ,"activeState_disabled": "<@sp.message code='data.input.activeState.DISABLED'/>"
        , "activeState_undefined": ""
      	, "data_input_date_title": "<@sp.message code='data.input.date.title'/>"
      }); 
    </script>
</head>
<body>
    <data-input-dates>Loading...</data-input-dates>
</body>
</html>